<template>
    <div class="home-head" @click="$router.push('/search')">
      <div class="home-head-left">
        <van-icon class-prefix="icon" name="leimupinleifenleileibie"/>
        <span>分类</span>
      </div>
      <div class="home-head-right">
        <van-icon class-prefix="icon" name="search"/>
        <span>搜索商品/店铺</span>
      </div>
    </div>
</template>

<script>
export default {
}
</script>

<style lang="scss" scoped>
.home-head{
  height: 50px;
  background-color: #f66;
  position: fixed;
  left:0;
  top:0;
  z-index:10;
  width: 100%;
  color:#fff;
  display: flex;
  align-items:center;
  &-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    padding: 0 5px;
  }
  &-right{
    display: flex;
    flex:1;
    height: 30px;
    align-items: center;
    font-size: 14px;
    padding-left: 10px;
    margin-right: 10px;
    border-radius: 15px;
    background: rgba(255,255,255,.2);
    span{
      margin-left: 10px;
    }
  }
}
</style>
